package com.chrilwe.pigpig.auth.common.response;

public enum ResultEnum {
	
	ERROR_REQUEST_PARAM("错误的请求参数", 9003500),
	UNAUTHORITY("未认证",9003401),
	ERR_VALIDATE_CODE("验证码错误", 9003501),
	UNKNOW_ERR("未知错误", 9003502),
	SUCCESS("成功", 9003200),
	ERR("失败", 9003400);
	
	private String name;
	
	private int code;
	
	private ResultEnum(String name, int code) {
		this.code = code;
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public int getCode() {
		return code;
	}
}
